<template>
    <div>
        <index :user="currentUser"></index>
        <record></record>
        <!-- <login></login> -->
        <!-- <register></register> -->
    </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import index, {UserProps} from './index.vue'
import record from './record.vue'
// import login from './login.vue'
// import register from './register.vue'

const currentUser: UserProps = {
  id: 1,
  name: '六月',
  email: '2289176794@qq.com',
  password: '123456',
  isLogin: true,
}

export default defineComponent({
    name: 'home',
    components: {
        index,
        record,
        // login,
        // register,
    },
    setup() {
        return {
            //ES6写法，键值对值相同则省略
            currentUser
        }
    },
})
</script>

<style lang="stylus" scoped>

</style>
